package com.library.domain;


import com.library.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 积分商城表 mb_goods
 *
 * @author null
 * @date 2020-04-23
 */
public class MbGoods extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Integer id;
    /**
     * 商品名称
     */
    private String goodsName;
    /**
     * 商品编号
     */
    private String goodsNo;
    /**
     * 商品积分
     */
    private Integer goodsScore;
    /**
     * 商品数量
     */
    private Integer goodsNum;
    /**
     * 广告位
     */
    private Integer advertisingNum;
    /**
     * 商品类型
     */
    private Integer goodsType;
    /**
     * 商品商户
     */
    private String commercial;
    /**
     * 商品状态
     */
    private String goodsStatus;
    /**
     * 缩略图地址
     */
    private String simpleImageUrl;
    /**
     * 详情图
     */
    private String detailsImageUrl;
    /**
     * 操作时间
     */
    private Date createTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 扩展字段
     */
    private String ext;

    /**
     * 商品类行
     */
    private MbGoodsType mbGoodsType;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsNo(String goodsNo) {
        this.goodsNo = goodsNo;
    }

    public String getGoodsNo() {
        return goodsNo;
    }

    public void setGoodsScore(Integer goodsScore) {
        this.goodsScore = goodsScore;
    }

    public Integer getGoodsScore() {
        return goodsScore;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setAdvertisingNum(Integer advertisingNum) {
        this.advertisingNum = advertisingNum;
    }

    public Integer getAdvertisingNum() {
        return advertisingNum;
    }

    public void setGoodsType(Integer goodsType) {
        this.goodsType = goodsType;
    }

    public Integer getGoodsType() {
        return goodsType;
    }

    public void setCommercial(String commercial) {
        this.commercial = commercial;
    }

    public String getCommercial() {
        return commercial;
    }

    public void setGoodsStatus(String goodsStatus) {
        this.goodsStatus = goodsStatus;
    }

    public String getGoodsStatus() {
        return goodsStatus;
    }

    public void setSimpleImageUrl(String simpleImageUrl) {
        this.simpleImageUrl = simpleImageUrl;
    }

    public String getSimpleImageUrl() {
        return simpleImageUrl;
    }

    public void setDetailsImageUrl(String detailsImageUrl) {
        this.detailsImageUrl = detailsImageUrl;
    }

    public String getDetailsImageUrl() {
        return detailsImageUrl;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public String getExt() {
        return ext;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("goodsName", getGoodsName())
                .append("goodsNo", getGoodsNo())
                .append("goodsScore", getGoodsScore())
                .append("goodsNum", getGoodsNum())
                .append("advertisingNum", getAdvertisingNum())
                .append("goodsType", getGoodsType())
                .append("commercial", getCommercial())
                .append("goodsStatus", getGoodsStatus())
                .append("simpleImageUrl", getSimpleImageUrl())
                .append("detailsImageUrl", getDetailsImageUrl())
                .append("createTime", getCreateTime())
                .append("remark", getRemark())
                .append("ext", getExt())
                .toString();
    }


}
